package com.leeoohoo.focus;

import com.leeoohoo.base.BaseService;
import com.leeoohoo.base.PageDTO;
import com.oohoo.spacestationspringbootstarter.dto.query.Butler;
import com.oohoo.spacestationspringbootstarter.dto.query.EPage;
import com.oohoo.spacestationspringbootstarter.dto.query.jpa.JpaUtils;
import org.springframework.stereotype.Service;

@Service
public class FocusService implements BaseService<FocusOn, Long> {

    @Override
    public FocusOn getT() {
        return new FocusOn();
    }


    public EPage<PageDTO> page(PageDTO pageDTO) {
        Butler butler = JpaUtils.createButler();
        return butler.findPage(pageDTO, pageDTO.getPageNum(), pageDTO.getPageSize());
    }

}
